package com.miyu.client1.service.bookAdmin.checkRule;

import com.alibaba.fastjson.JSONObject;
import com.miyu.client1.utils.ehcache.EhcacheUtil;
import us.codecraft.webmagic.ResultItems;
import us.codecraft.webmagic.Task;
import us.codecraft.webmagic.pipeline.Pipeline;

public class checkRuleData implements Pipeline {
    @Override
    public void process(ResultItems resultItems, Task task) {


        JSONObject checkRule = resultItems.get("checkRule");
        EhcacheUtil.getInstance().put("bookEhcache", "checkRule", checkRule);
    }
}
